package com.travelsmart.client.control;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.travelsmart.client.bean.to.FilterInfoHotel;
import com.travelsmart.client.bean.to.FilterPesquisaHotel;
import com.travelsmart.client.bean.to.HotelTO;
import com.travelsmart.client.bean.to.ReservaHotelException;
import com.travelsmart.client.bean.to.ReservaHotelTO;
import com.travelsmart.client.bean.to.ReservaQuartoTO;
@RemoteServiceRelativePath("hotelsmart")
public interface HotelSmartService extends RemoteService{
	
	
	String _RELATIVE_PATH = "hotelsmart";
	

	public List<HotelTO> listaHotel(FilterPesquisaHotel filter);
	
	public HotelTO dadosHotel(FilterInfoHotel to);
	
	public ReservaHotelTO criarReservaHotel(ReservaHotelTO to) throws ReservaHotelException;
	
	public void updateReserva(ReservaHotelTO contato);
	
	public <E> List<E> sortList(List<E> list, boolean asc, String atributo);
	
	/*/# INICIO - EXERC. 1
	
	//FIM - EXERC. 1 #*/

	public List<ReservaHotelTO> listReservas(int posicaoInicial, int nroRegistrosPagina) throws Exception;
	public ReservaHotelTO obterReservaHotel(long id) throws ReservaHotelException;
	

}
